package com.frxuexi.lib_base.net

import com.frxuexi.lib_base.entity.Res
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST

interface ApiService {
    @POST("/sysUser/loginUser")
    suspend fun login(@Body body: RequestBody):Res

    @POST("/sysParking/selParking")
    suspend fun getParks():Res

    @POST("/sysColor/selColor")
    suspend fun getColors():Res

    @POST("/sysParking/addParking")
    suspend fun addPark(@Body body: RequestBody):Res

    @POST("/sysRepair/selAllRepair")
    suspend fun getAllRepairs():Res

    @POST("/sysRepair/selAppointRepair")
    suspend fun selAppointRepair(@Body body: RequestBody):Res

    @POST("/sysRepair/addRepair")
    suspend fun addRepair(@Body body: RequestBody):Res

    @POST("/sysVisitor/selVisitor")
    suspend fun getVistors(@Body body: RequestBody):Res

    @POST("/sysVisitor/delVisitor")
    suspend fun deleteVistor(@Body body: RequestBody):Res

    @POST("/sysVisitor/addVisitor")
    suspend fun addVisitor(@Body body: RequestBody):Res

    @POST("/sysNews/selAllNews")
    suspend fun getNews(@Body body: RequestBody):Res

    @POST("/sysNews/addNews")
    suspend fun addNews(@Body body: RequestBody):Res

    @POST("/notice/selNotice")
    suspend fun getNotices(@Body body: RequestBody):Res

    @POST("/notice/addNotice")
    suspend fun addNotice(@Body body: RequestBody):Res

    @POST("/SysSign/startSign")
    suspend fun sign(@Body body: RequestBody):Res

    @POST("/SysSign/selMonth")
    suspend fun getSigns(@Body body: RequestBody):Res
}